From: Giovanni Campagna Date: Sat, 25 May 2013 12:59:09 +0000 (+0200) Subject: theme: don't parse the default stylesheet twice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3813 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f78e17ce02965f90312d8a94c607654716b806df;p=gnome-shell.git theme: don't parse the default stylesheet twice If we don't have a custom theme, set the stylesheet as the default only, so we don't parse it twice. --- diff --git a/js/ui/main.js b/js/ui/main.js index 1bd61b794..17f05e17e 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -260,11 +260,7 @@ function loadTheme() { let themeContext = St.ThemeContext.get_for_stage (global.stage); let previousTheme = themeContext.get_theme(); - let cssStylesheet = _defaultCssStylesheet; - if (_cssStylesheet != null) - cssStylesheet = _cssStylesheet; - - let theme = new St.Theme ({ application_stylesheet: cssStylesheet, + let theme = new St.Theme ({ application_stylesheet: _cssStylesheet, default_stylesheet: _defaultCssStylesheet }); if (previousTheme) {